home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-GM / MPW / Quit < prev    next >
Encoding:
Text File  |  1996-03-06  |  1.4 KB  |  42 lines  |  [TEXT/MPS ]

  1. #    Quit - MPW Shell Quit File
  2. #
  3. #    Copyright Apple Computer Inc. 1986-1988, 1991, 1995.
  4. #    All Rights Reserved.
  5.  
  6.             
  7. #    Default tasks.
  8.  
  9.             Save "{Worksheet}"
  10.  
  11. #    Since Quit is distributed with MPW, you may want to have other
  12. #    "Quit" scripts that will not be overwritten with a new release.
  13. #    Other personalized quit scripts may be named Quit•≈ - such as 
  14. #    "Quit•John" or "Quit•Tom"  (• is option-8), and placed in the
  15. #    MPW preferences folder ({PrefsFolder}).  Alternately, you may
  16. #    place items in the Quit Items folder, located in the directory
  17. #    containing the MPW Shell.  These items do not have any special
  18. #    naming convention, and will be executed in alphabetical order.
  19. #    They can also be any type of executable entity, such as scripts,
  20. #    tools, and/or applications.
  21. #   
  22. #    The following executes such files found in either place.
  23.  
  24.             # this method of running custom quit scripts is obsolete, and will be removed
  25.             # in a future version of this script.  Please move your Quit• scripts into
  26.             # the new :Quit Items: folder.
  27.             For __Quit__i in `(Files -t 'TEXT' -f -s "{ShellDirectory}"Quit•≈ || Set Status 0) ≥ dev:null`
  28.                 Execute "{__Quit__i}"
  29.             End
  30.  
  31.             For __Quit__i in `(Files -t 'TEXT' -f -s  "{ShellDirectory}Quit Items:" || Set Status 0) ≥ dev:null`
  32.                 Execute "{__Quit__i}"
  33.             End
  34.  
  35.             If "{PrefsFolder}"
  36.                 For __Quit__i in `(Files -t 'TEXT' -f -s "{PrefsFolder}"Quit•≈ || Set Status 0) ≥ dev:null`
  37.                     Execute "{__Quit__i}"
  38.                 End
  39.             End
  40.  
  41.             Unset __Quit__i
  42.